package com.ds.applet.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ds.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Arrays;

/**
 * 小程序信息备份对象 mini_app
 *
 * @author liucan
 * @date 2024-03-27
 */

@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class MiniApp implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * AppID
     */
    @Excel(name = "AppID")
    private String appId;

    /**
     * AppSecret
     */
    @Excel(name = "AppSecret")
    private String appSecret;

    /**
     * 小程序名称
     */
    @Excel(name = "小程序名称")
    private String appName;

    /**
     * 微信原始ID
     */
    @Excel(name = "微信原始ID")
    private String originalId;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间")
    private String creationTime;

    /**
     * 创建人
     */
    @Excel(name = "创建人")
    private String creationBy;

    /**
     * 状态 0正常 1删除
     */
    @Excel(name = "状态 0正常 1删除")
    private Integer appStatus;

    /**
     * 所属小程序
     */
    @Excel(name = "所属小程序")
    private String toApplet;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;

    @TableField(exist = false)
    private String[] ids;//删除用到的存储id

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getOriginalId() {
        return originalId;
    }

    public void setOriginalId(String originalId) {
        this.originalId = originalId;
    }

    public String getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(String creationTime) {
        this.creationTime = creationTime;
    }

    public String getCreationBy() {
        return creationBy;
    }

    public void setCreationBy(String creationBy) {
        this.creationBy = creationBy;
    }

    public Integer getAppStatus() {
        return appStatus;
    }

    public void setAppStatus(Integer appStatus) {
        this.appStatus = appStatus;
    }

    public String getToApplet() {
        return toApplet;
    }

    public void setToApplet(String toApplet) {
        this.toApplet = toApplet;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String[] getIds() {
        return ids;
    }

    public void setIds(String[] ids) {
        this.ids = ids;
    }

    @Override
    public String toString() {
        return "MiniApp{" +
                "id=" + id +
                ", appId='" + appId + '\'' +
                ", appSecret='" + appSecret + '\'' +
                ", appName='" + appName + '\'' +
                ", originalId='" + originalId + '\'' +
                ", creationTime='" + creationTime + '\'' +
                ", creationBy='" + creationBy + '\'' +
                ", appStatus=" + appStatus +
                ", toApplet='" + toApplet + '\'' +
                ", remark='" + remark + '\'' +
                ", ids=" + Arrays.toString(ids) +
                '}';
    }
}
